package cn.webestar.scms.security;

public class Constant {

    public final static String TOKEN_HEADER = "Authorization";

    public final static String TOKEN_PREFIX = "Bearer";

    public final static String IGNORE_METHOD = "OPTIONS";

//    /**
//     * token 有效期
//     */
//    public final static Integer ACCESS_TOKEN_EXPIRE = 60 * 60 * 5;
//
//    /**
//     * refresh_token 有效期
//     */
//    public final static Integer REFRESH_TOKEN_EXPIRE = 60 * 60 * 24 * 3;

    /**
     * token key 的key格式
     */
    public final static String ACCESS_TOKEN_CACHE_KEY = "%s:security:accessToken:%s:%s";

    /**
     * refresh_token 的key格式
     */
    public final static String REFRESH_TOKEN_CACHE_KEY = "%s:security:refreshToken:%s:%s";

    /**
     * 登录时存储图形验证码到缓存中的key
     */
    public static final String CACHE_KEY_IMAGE_CAPTCHA = "%s:security:imageCaptcha:%s";

    /**
     * 短信验证码
     */
    public static final String CACHE_KEY_SMS_CODE = "%s:security:smsCode:%s";

}
